public class Test042702 {
    public class BankPay implements Pay{
    double m =150;
    public void pay(double money){
        if (m>=money){
            System.out.println("你消费的金额为"+money);
            m = m - money;
            System.out.println("余额"+m);
        }
        else{
            System.out.println("您的余额不足");
        }
    }
}

